package com.shensi.api.admin.client.station;

import com.shensi.api.admin.client.fallback.monitor.SysLogininforClientFallBack;
import com.shensi.api.admin.domian.station.dto.SyncUserDto;
import com.shensi.api.admin.domian.station.dto.TimingPayWayDto;
import com.shensi.common.core.annotation.Log;
import com.shensi.common.core.constant.CloudConstant;
import com.shensi.common.core.domain.AjaxResult;
import com.shensi.common.core.enums.BusinessType;
import com.shensi.common.core.page.TableDataInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;
import java.util.List;


/**
 * @author mao
 */
@FeignClient(
        value = CloudConstant.ADMIN_SERVER,
        fallbackFactory = SysLogininforClientFallBack.class)
@Component
public interface TimingPayWayClient {


    /**
     * 查询定时修改支付方式列表
     */
    @GetMapping("/Timing/way/list")
    public TableDataInfo list(TimingPayWayDto timingPayWay);

    /**
     * 导出定时修改支付方式列表
     */

    @GetMapping("/Timing/way/export")
    public AjaxResult export(TimingPayWayDto timingPayWay) ;

    /**
     * 获取定时修改支付方式详细信息
     */

    @GetMapping(value = "/Timing/way/{timeId}")
    public AjaxResult getInfo(@PathVariable("timeId") Long timeId);

    /**
     * 新增定时修改支付方式
     */

    @PostMapping("/Timing/way")
    public AjaxResult add(@RequestBody TimingPayWayDto timingPayWay);

    /**
     * 修改定时修改支付方式
     */

    @PutMapping("/Timing/way")
    public AjaxResult edit(@RequestBody TimingPayWayDto timingPayWay);

    /**
     * 删除定时修改支付方式
     */

    @DeleteMapping("/Timing/way/{timeIds}")
    public AjaxResult remove(@PathVariable("timeIds") Long[] timeIds);
}
